package com.xy.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import com.xy.entity.User;
import com.xy.mapper.UserMapper;
import com.xy.service.UserService;

@Service("userService")
public class UserServiceImpl implements UserService {
	@Autowired
	private UserMapper userMapper;

	public boolean addUser(User user) {
		return userMapper.addUser(user);
	}

	public boolean deleUser(User user) {
		return userMapper.deleUser(user);
	}

	public boolean updateUser(User user) {
		return userMapper.updateUser(user);
	}

	public User loginUser(User user) {

		return userMapper.loginUser(user);
	}

	public List<User> selectUser(Map<String, Object> map) {
		return userMapper.selectUser(map);
	}

}
